<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta charset="utf-8"/>
    <title>激想运动专营店上海分店</title>
    <meta name="description" content="overview &amp; stats"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="../../assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../assets/font-awesome/4.5.0/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="../../assets/fonts/iconfont.css"/>
    <!-- page specific plugin styles -->
    <link rel="stylesheet" href="../../assets/css/jquery-ui.min.css"/>
    <link rel="stylesheet" href="../../assets/css/bootstrap-datepicker3.min.css"/>
    <link rel="stylesheet" href="../../assets/css/ui.jqgrid.min.css"/>
    <link rel="stylesheet" href="../../assets/css/bootstrap-timepicker.min.css"/>
    <link rel="stylesheet" href="../../assets/css/daterangepicker.min.css"/>
    <link rel="stylesheet" href="../../assets/css/bootstrap-datetimepicker.min.css"/>
    <link rel="stylesheet" href="../../assets/css/bootstrap-colorpicker.min.css"/>
    <!--ztree-->
    <link rel="stylesheet" href="../../assets/tools/ztree/css/metroStyle/metroStyle.css" type="text/css">
    <!-- text fonts -->
    <link rel="stylesheet" href="../../assets/css/fonts.googleapis.com.css"/>
    <!-- ace styles -->
    <link rel="stylesheet" href="../../assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style"/>
    <link rel="stylesheet" href="../../assets/css/jquery-ui.min.css"/>
    <link rel="stylesheet" href="../../assets/css/login/member.css">
   <link rel="stylesheet" href="../../assets/css/admin.css">
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="../../assets/css/ace-part2.min.css" class="ace-main-stylesheet"/>
    <![endif]-->
    <link rel="stylesheet" href="../../assets/css/ace-skins.min.css"/>
    <link rel="stylesheet" href="../../assets/css/ace-rtl.min.css"/>
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="../../assets/css/ace-ie.min.css"/>
    <![endif]-->

    <!-- inline styles related to this page -->
    <!-- ace settings handler -->
    <script src="../../assets/js/ace-extra.min.js"></script>
    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
    <!--[if lte IE 8]>
    <script src="../../assets/js/html5shiv.min.js"></script>
    <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
</head>

<body class="jx-skin no-skin">
<div id="navbar" class="navbar navbar-default ace-save-state ">
    <div class="navbar-container ace-save-state" id="navbar-container">
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
            <span class="sr-only">Toggle sidebar</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <div class="navbar-header pull-left">
            <div class="workspace-switcher">
                <a href="javascript:;" type="button" class="workspace-switcher-handler dropdown-toggle"
                   data-toggle="dropdown">
                    <i class="fa fa-bars" aria-hidden="true"></i>
                </a>
                <ul class="dropdown-menu workspace-switcher-view" role="menu">
                    <li><a href="#" style=""> <i class="fa fa-check"
                                                 style=""
                                                 aria-hidden="true"></i>
                        <span style="">激想体育专营店上海分店</span></a>
                    </li>
                    <li><a href="#" style=""> <span style="">激想体育专营店上海分店</span>
                        <span class="ml-10 label label-danger label-white middle">11天试用期</span>
                    </a></li>
                    <li><a href="#" style=""> <span style="">激想体育专营店上海分店</span></a>
                    </li>
                    <li class="divider"></li>

                    <li><a href="#" style=""><i class="fa fa-plus" aria-hidden="true"></i> <span
                            style="">新增店铺</span></a>
                    </li>
                </ul>
            </div>
            <a href="../manager/home.html" class="navbar-brand">
                <small>
                    激想运动专营店上海分店
                </small>
            </a>
        </div>
        <div class="navbar-buttons navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <li class="grey dropdown-modal">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <i class="ace-icon fa fa-bell icon-animated-bell"></i>
                        <span class="badge badge-important">8</span>
                    </a>

                    <ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
                        <li class="dropdown-header">
                            <i class="ace-icon fa fa-exclamation-triangle"></i>
                            8 Notifications
                        </li>

                        <li class="dropdown-content">
                            <ul class="dropdown-menu dropdown-navbar navbar-pink">
                                <li>
                                    <a href="#">
                                        <div class="clearfix">
													<span class="pull-left">
														<i class="btn btn-xs no-hover btn-pink fa fa-comment"></i>
														New Comments
													</span>
                                            <span class="pull-right badge badge-info">+12</span>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <i class="btn btn-xs btn-primary fa fa-user"></i>
                                        Bob just signed up as an editor ...
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <div class="clearfix">
													<span class="pull-left">
														<i class="btn btn-xs no-hover btn-success fa fa-shopping-cart"></i>
														New Orders
													</span>
                                            <span class="pull-right badge badge-success">+8</span>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <div class="clearfix">
													<span class="pull-left">
														<i class="btn btn-xs no-hover btn-info fa fa-twitter"></i>
														Followers
													</span>
                                            <span class="pull-right badge badge-info">+11</span>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </li>

                        <li class="dropdown-footer">
                            <a href="#">
                                See all notifications
                                <i class="ace-icon fa fa-arrow-right"></i>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="grey dropdown-modal">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="../../assets/images/avatars/user.jpg" alt="Jason's Photo"/>
                        <span class="user-info">
									<small>Welcome,</small>
									Jason
								</span>
                        <i class="ace-icon fa fa-caret-down"></i>
                    </a>
                    <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li>
                            <a href="#">
                                <i class="ace-icon fa fa-cog"></i>
                                设置
                            </a>
                        </li>

                        <li>
                            <a href="../account/accountInfo.html" target="_blank">
                                <i class="ace-icon fa fa-user"></i>
                                账户
                            </a>
                        </li>

                        <li class="divider"></li>

                        <li>
                            <a href="#">
                                <i class="ace-icon fa fa-power-off"></i>
                                退出
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div><!-- /.navbar-container -->
</div>
<div class="main-container ace-save-state" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.loadState('main-container')
        } catch (e) {
        }
    </script>

    <div id="sidebar" class="sidebar responsive  ace-save-state">
        <script type="text/javascript">
            try {
                ace.settings.loadState('sidebar')
            } catch (e) {
            }
        </script>
        <ul class="nav nav-list">
            <li class="">
                <a href="../manager/home.html">
                    <i class="menu-icon  fa fa-home"></i>
                    <span class="menu-text"> 首页 </span>
                </a>
                <b class="arrow"></b>
            </li>
            <li class="active open">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text">终端管理</span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>
                <b class="arrow"></b>
                <ul class="submenu">
                    <li class="">
                        <a href="../terminalManager/productBrands.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            品牌管理
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="active">
                        <a href="../terminalManager/productManager.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            商品管理
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../terminalManager/productCarousels.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            轮播图管理
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="../order/orderList.html">
                    <i class="menu-icon fa fa-file-text-o" aria-hidden="true"></i>
                    <span class="menu-text">订单</span>
                </a>

            </li>
            <li class="">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-user" aria-hidden="true"></i>
                    <span class="menu-text">员工</span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>
                <b class="arrow"></b>
                <ul class="submenu">
                    <li class="">
                        <a href="../staff/staffInfo.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            员工档案
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-cog" aria-hidden="true"></i>
                    <span class="menu-text">店铺管理</span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>
                <b class="arrow"></b>
                <ul class="submenu">
                    <li class="">
                        <a href="../shop-manager/shopInfo.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            店铺信息
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../shop-manager/privilegeManagement.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            权限设置
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../shop-manager/managerLog.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            店铺日志
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../shop-manager/paymentSetting.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            收款设置
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../shop-manager/shopBalance.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            店铺余额
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="../help/help.html" class="dropdown-toggle">
                    <i class="menu-icon fa fa-question-circle"></i>
                    <span class="menu-text">帮助</span>
                </a>
            </li>
        </ul><!-- /.nav-list -->
        <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state"
               data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
        </div>
    </div>
    <div class="main-content">
        <div class="main-content-inner">
            <div class="breadcrumbs ace-save-state" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa fa-home home-icon"></i>
                        <a href="#">首页</a>
                    </li>
                    <li class="active">订单详情</li>
                </ul><!-- /.breadcrumb -->
                <div class="nav-search" id="nav-search">
                    <form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="Search ..." class="nav-search-input"
                                           id="nav-search-input" autocomplete="off"/>
									<i class="ace-icon fa fa-search nav-search-icon"></i>
								</span>
                    </form>
                </div><!-- /.nav-search -->
            </div>
            <div class="page-content">
                <div class="page-header">
                    <h1>订单详情</h1>
                </div><!-- /.page-header -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="row service-status-warp service-item">
                            <div class="status-info col-lg-2 col-md-3 col-sm-3 col-xs-12">
                                <p>订单号：546715456142</p>
                                <p class="status">待收款</p>
                                <p class="orange">剩余时间：1小时29分</p>
                            </div>
                            <div class="service-status-step col-lg-10 col-md-9 col-sm-9 col-xs-12">
                                <ul class="service-status">
                                    <li class="active">
                                        <i class="iconfont icon-shoudaodedingdan"></i>
                                        <span class="vertical-line"></span>
                                        <p class="status">收到订单</p>
                                        <span class="gray">2016-03-14<br>11:11:11</span>
                                    </li>
                                    <li>
                                        <i class="iconfont icon-shoukuan"></i>
                                        <span class="vertical-line"></span>
                                        <p class="status">收到订单</p>
                                        <span class="gray">2016-03-14 <br>11:11:11</span>
                                    </li>
                                    <li>
                                        <i class="iconfont icon-yishoukuan"></i>
                                        <span class="vertical-line"></span>
                                        <p class="status">收到订单</p>
                                        <span class="gray">2016-03-14 <br>11:11:11</span>
                                    </li>
                                    <li>
                                        <i class="iconfont icon-fahuo-copy"></i>
                                        <span class="vertical-line"></span>
                                        <p class="status">收到订单</p>
                                        <span class="gray">2016-03-14 <br>11:11:11</span>
                                    </li>
                                    <li>
                                        <i class="iconfont icon-wancheng"></i>
                                        <span class="vertical-line last"></span>
                                        <p class="status">收到订单</p>
                                        <span class="gray">2016-03-14 <br>11:11:11</span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="row service-item">
                            <div class="info-list-warp col-lg-4 col-md-4 col-xs-4">
                                <ul class="info-list">
                                    <li>
                                        <label for="" class="pl-20 weight600">收货人信息</label>
                                    </li>
                                    <li>
                                        <label for="" class="title-label"> 收货人：</label>陈晨
                                    </li>
                                    <li>
                                        <label for="" class="title-label"> 地址：</label>
                                        <div class="address-info">
                                            江苏省南京市XX区XXXXX路
                                            XXX弄XXX号
                                        </div>
                                    </li>
                                    <li>
                                        <label for="" class="title-label">联系电话：</label>15900684377
                                    </li>
                                    <li>
                                        <label for="" class="title-label"> 手机：</label>021-64541067
                                    </li>

                                    <li>
                                        <label for="" class="title-label"> 邮编：</label> 201201
                                    </li>

                                </ul>
                            </div>
                            <div class="info-list-warp col-lg-4 col-md-4 col-xs-4">
                                <ul class="info-list">
                                    <li>
                                        <label for="" class="pl-20 weight600">配送信息</label>
                                    </li>
                                    <li>
                                        <label for="" class="title-label">收货方式：</label>快递发货
                                    </li>
                                    <li>
                                        <label for="" class="title-label"> 运费：</label>¥12.00
                                    </li>
                                    <li>
                                        <label for="" class="title-label"> 送货日期：</label>-
                                    </li>
                                    <li>
                                        <label for="" class="title-label"> 承运人：</label>-
                                    </li>
                                    <li>
                                        <label for="" class="title-label"> 运单号：</label>-
                                    </li>
                                </ul>
                            </div>
                            <div class="info-list-warp col-lg-4 col-md-4 col-xs-4">
                                <ul class="info-list">
                                    <li>
                                        <label for="" class="pl-20 weight600">订单金额</label>
                                    </li>
                                    <li>
                                        <label for="" class="title-label"> 应收总额： </label>¥1810.00
                                    </li>
                                    <li>
                                        <label for="" class="title-label"> 应付金额： </label>¥1410.00
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="row service-item">
                            <table class="table  center table-bordered align-middle order-table">
                                <thead>
                                <tr class=" table-header">
                                    <td width="200">货品</td>
                                    <td width="100">进货价</td>
                                    <td width="150">终端销售价</td>
                                    <td width="150">数量</td>
                                    <td width="200">操作</td>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>
                                        <div class="td-pro-warp">
                                            <div class="td-proImg">
                                                <img src="../../assets/images/product.jpg">
                                            </div>
                                            <div class="td-proInfo">
                                                <p>商品货号：37461443</p>
                                                <p>NIKE AIR ZOOM SCTUREST RUCTURES</p>
                                                <p>尺码：7(38.5)</p>
                                            </div>
                                        </div>
                                    </td>
                                    <td>
                                        ¥699.00
                                    </td>
                                    <td>¥899.00</td>
                                    <td>
                                        2
                                    </td>
                                    <td> 998.00</td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="order-payInfo pull-right">
                                <ul>
                                    <li>
                                        <label for="">商品总额：</label><span>¥899.00</span>
                                    </li>
                                    <li>
                                        <label for="">运费：</label> <span class="">¥12.00</span>
                                    </li>
                                    <li>
                                        <label for="">应收总额(含运费)：</label><span class="orange">¥1810.00</span>
                                    </li>
                                    <li class="text-center">
                                        <button id="payBtn" style="width: 150px" type="submit"
                                                class="btn btn-orange btn-round ">收款
                                        </button>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <div class="footer">
        <div class="footer-inner">
            <div class="footer-content">
                沪ICP备15052275号-2
            </div>
        </div>
    </div>

    <div id="payDialog" title="选择收款方式" class="dialog-init">
        <div class="pay-strategy-warp">
            <ul class="select-pay-strategy">
                <li>
                    请选择收款方式
                </li>
                <li>
                    <div class="checkbox">
                        <label>
                            <input name="xianjin" class="ace ace-checkbox-2" type="checkbox">
                            <span class="lbl">&nbsp;&nbsp;现金</span>
                        </label>
                    </div>
                </li>
                <li>
                    <div class="checkbox">
                        <label>
                            <input name="yinlian" class="ace ace-checkbox-2" type="checkbox">
                            <span class="lbl">&nbsp;&nbsp;银联</span>
                        </label>
                    </div>
                </li>
                <li>
                    <div class="checkbox">
                        <label>
                            <input name="zhifubao" class="ace ace-checkbox-2" type="checkbox">
                            <span class="lbl">&nbsp;&nbsp;支付宝</span>
                        </label>
                    </div>
                </li>
                <li>
                    <div class="checkbox">
                        <label>
                            <input name="weixin" class="ace ace-checkbox-2" type="checkbox">
                            <span class="lbl">&nbsp;&nbsp;微信</span>
                        </label>
                    </div>
                </li>
            </ul>
        </div>
        <div id="order-payInfo" class="order-payInfo">
            <form id="payForm" action="" class="form-horizontal ui-form">
                <ul class="">
                    <li>
                        <label for="">商品总额：</label><span>¥899.00</span>
                    </li>
                    <li>
                        <label for="">运费：</label> <span class="">¥12.00</span>
                    </li>
                    <li>
                        <label for="">应收总额(含运费)：</label><span class="orange">¥1810.00</span>
                    </li>
                </ul>
            </form>
        </div>
    </div><!-- /.main-container -->

    <!-- basic scripts -->
    <!--[if !IE]> -->
    <script src="../../assets/js/jquery-2.1.4.min.js"></script>
    <!-- <![endif]-->
    <!--[if IE]>
    <script src="../../assets/js/jquery-1.11.3.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        if ('ontouchstart' in document.documentElement) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
    </script>
    <script src="../../assets/js/bootstrap.min.js"></script>
    <!-- page specific plugin scripts -->
    <!--[if lte IE 8]>
    <script src="../../assets/js/excanvas.min.js"></script>
    <![endif]-->
    <!-- page specific plugin scripts -->
    <script src="../../assets/js/jquery.validate.min.js"></script>
    <script src="../../assets/js/jquery-ui.min.js"></script>
    <script src="../../assets/js/bootstrap-datepicker.min.js"></script>
    <!-- ace scripts -->
    <script src="../../assets/js/jquery.easypiechart.min.js"></script>
    <script src="../../assets/js/jquery.sparkline.index.min.js"></script>
    <script src="../../assets/js/jquery.flot.min.js"></script>
    <script src="../../assets/js/jquery.flot.pie.min.js"></script>
    <script src="../../assets/js/jquery.flot.resize.min.js"></script>

    <!-- ace scripts -->
    <script src="../../assets/js/ace-elements.min.js"></script>
    <script src="../../assets/js/ace.min.js"></script>
    <script src="../../assets/javascripts/app.js"></script>


    <!-- inline scripts related to this page -->
    <!-- script start -->
    <script>
        $(function () {
            if ($.validator) {
                //fix: when several input elements shares the same name, but has different id-ies....
                $.validator.prototype.elements = function () {
                    var validator = this,
                        rulesCache = {};
                    // select all valid inputs inside the form (no submit or reset buttons)
                    // workaround $Query([]).add until http://dev.jquery.com/ticket/2114 is solved
                    return $([]).add(this.currentForm.elements)
                        .filter(":input")
                        .not(":submit, :reset, :image, [disabled]")
                        .not(this.settings.ignore)
                        .filter(function () {
                            var elementIdentification = this.id || this.name;
                            !elementIdentification && validator.settings.debug && window.console && console.error("%o has no id nor name assigned", this);
                            // select only the first element for each name, and only those with rules specified
                            if (elementIdentification in rulesCache || !validator.objectLength($(this).rules()))
                                return false;
                            rulesCache[elementIdentification] = true;
                            return true;
                        });
                };
            }
        });
        $(function () {

            $(".select-pay-strategy input[type='checkbox']").change(function () {
                var id = $(this).attr('name');
                var text = $(this).next().text();
                var str = '<li id="' + id + '" class="pay-strategy">' +
                    '<label for="">' + text + '收款：</label>' +
                    '<input type="text"  id="' + id + '" name="price" required class="input-small">&nbsp;元' +
                    ' <div class="ui-form-explain"></div></li>';
                if ($(this).is(':checked')) {
                    $("#order-payInfo ul").append(str);
                    $("#" + id).css("display", "block");
                } else {
                    $("#" + id).remove();
                }

            });
            var editSaleId = '';
            $("#payBtn").click(function () {
                editSaleId = $(this).attr("id");
                $("#payDialog").dialog('open');
            });
            $("#payDialog").dialog({
                autoOpen: false,
                modal: true,
                dialogClass: "J-dialog content-no-padding",
                width: 600,
                height: "auto",
                buttons: [
                    {
                        html: "取消",
                        "class": "btn btn-white btn-round  btn-minier",
                        click: function () {

                            $(this).dialog("close");
                            $(".select-pay-strategy input[type='checkbox']").each(function () {
                                $(this).prop("checked", false);
                                $(".pay-strategy").remove();
                            })
                        }
                    }
                    ,
                    {
                        html: "确认",
                        "class": "btn btn-orange btn-round btn-minier",
                        click: function (e) {
                            if (!$('#payForm').valid()) {
                                e.preventDefault();
                            } else {
                                var count = 0;
                                $(".select-pay-strategy input[type='checkbox']").each(function () {
                                    if (!$(this).is(':checked')) {
                                        count++;
                                    }
                                });
                                if (count == 4) {
                                    jxMessage("请选择付款方式");
                                } else {
                                    $("#payForm").submit();
                                    $("#payDialog").dialog('close');
                                }
                            }

                        }
                    }
                ]

            });

            var sale = $("#payForm").validate({
                errorElement: "span",
                errorClass: "red",
                /*onkeyup: function (element, event) {
                    //去除左侧空格
                    var value = this.elementValue(element).replace(/^\s+/g, "");
                    $(element).val(value);
                },*/
                onfocusout: function (element, event) {
                    var value = this.elementValue(element).replace(/\s|\xA0/g,"");
                    $(element).val(value);
                },
                errorPlacement: function (error, element) {
                    error.appendTo(element.parent());
                },
                rules: {
                    price: {
                        required: true,
                        number: true
                    },
                    yinlian: {
                        required: true,
                        number: true
                    },
                    zhifubao: {
                        required: true,
                        number: true
                    },
                    weixin: {
                        required: true,
                        number: true
                    }

                },
                messages: {
                    price: {
                        required: "请输入现金付款金额",
                        number: "必须是数字"
                    },
                    yinlian: {
                        required: "请输入银联付款金额",
                        number: "必须是数字"

                    },
                    zhifubao: {
                        required: "请输入现金付款金额",
                        number: "必须是数字"

                    },
                    weixin: {
                        required: "请输入现金付款金额",
                        number: "必须是数字"

                    },

                },
                highlight: function (e) {

                },
                success: function (e) {

                },
                submitHandler: function (form) {
                    sale.resetForm();
                    form.reset();
                    $(".select-pay-strategy input[type='checkbox']").each(function () {
                        $(this).prop("checked", false);
                        $(".pay-strategy").remove();
                    })
                },
                invalidHandler: function (form) {
                }
            });

        })

    </script>


</body>
</html>
